package com.作业.第八章作业.HomeWork05;

public class Teacher extends Employ{
    private int days;
    private double class_salary;

    public Teacher(String name, double salary, int days, double class_salary) {
        super(name, salary);
        this.days = days;
        this.class_salary = class_salary;
    }

    public void printsalary(){
        System.out.println("教师 " + getName() + " 年薪为 "+( (getSalary()+days * class_salary)*12)+"RMB" );
    }
}
